<include file="public:header" />
<div class="subnav">
    <h1 class="title_2 line_x">定时刷新设置</h1>
</div>
<div class="pad_lr_10">
	<form id="info_form" action="{:u('Setting/edit')}" method="post">
	<table width="100%" class="table_form">
        <tr>
            <th width="100">刷新无券商品 :</th>
            <td>
                <label class="mr10"><input type="radio" class="J_change_status" <if condition="C('itk_refresh_open') eq '1'">checked="checked"</if> value="1" name="setting[refresh_open]"> {:L('open')}</label>
                <label><input type="radio" class="J_change_status" <if condition="C('itk_refresh_open') eq '0'">checked="checked"</if> value="0" name="setting[refresh_open]"> {:L('close')}</label>
                <span class="gray ml10">针对阿里妈妈采集器的商品是否需要刷新销量;根据服务器配置而定,不建议开始</span>
            </td>
        </tr>
        <tr>
            <th width="100">刷新时间间隔 :</th>
            <td><input type="text" name="setting[plan_time]" class="input-text" size="30" value="{:C('itk_plan_time')}"><span class="gray ml10">3600 为一小时,7200 为两小时</span></td> 
        </tr>
        <tr>
            <th>每次刷新个数 :</th>
            <td><input type="text" name="setting[plan_pernum]" class="input-text" size="30" value="{:C('itk_plan_pernum')}"><span class="gray ml10">每次刷新的商品个数</span></td> 
        </tr>        
        <tr>
        	<th></th>
        	<td>
                <input type="hidden" name="menuid"  value="{$menuid}"/>
                <input type="submit" class="smt mr10" value="{:L('submit')}"/>
            </td>
    	</tr>
	</table>
	</form>
</div>
<include file="public:footer" />
<script>
$(function(){
    $('.J_change_status').live('click', function(){
        if($(this).val() == '1'){
            $('#J_closed_reason').fadeIn();
        }else{
            $('#J_closed_reason').fadeOut();
        }
    });
});
</script>
</body>
</html>